//
//  BuildingAnnotation.m
//  mUBB
//
//  Created by Cosmin Stirbu on 3/13/13.
//  Copyright (c) 2013 Cosmin Stirbu. All rights reserved.
//

#import "BuildingAnnotation.h"


@implementation BuildingAnnotation

@synthesize title, coordinate;

- (id)initWithBuilding:(Building *)building {
    self = [super init];
    if (self) {
        _building = building;
    }
    return self;
}

- (NSString *)title {
    return [NSString stringWithFormat:@"%@, %@", _building.name, _building.street];
}

- (CLLocationCoordinate2D)coordinate {
    return _building.coordinates;
}

@end
